package com.city.service.auth.impl;

import com.city.domain.auth.PubAuth;
import com.city.repository.auth.PubAuthRepository;
import com.city.service.auth.PubAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PubAuthServiceImpl implements PubAuthService {


    @Autowired
    private PubAuthRepository pubAuthRepository;

    @Override
    public PubAuth findByUserId(int id) {
        return pubAuthRepository.findByUserId(id);
    }

    @Override
    public void save(PubAuth pubAuth) {
        pubAuthRepository.save(pubAuth);
    }
}
